<!-- Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.   -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>

<%  

String errorMessage = request.getParameter("errorMessage"); 
String errorPrint = "";

if ("NoActiveAlerts".equalsIgnoreCase(errorMessage)) {
  errorPrint = "There are currently no active Alerts so the Accountability & Response " +
  "functionality is not available.";
} else if ("NoIcons".equalsIgnoreCase(errorMessage)){
  errorPrint = "There are currently no map Icons set up so the Map Marker " +
  "functionality is not available.  Set up one ore more Icons before using Map Marker features.";
} else if ("NoPermission".equalsIgnoreCase(errorMessage)){
	  errorPrint = "You do not have the necessary permissions to access this page. See " +
	  "your Department's administrator in order to get the necessary permissions.";
} else if ("missingMemberSelection".equalsIgnoreCase(errorMessage)){
    errorPrint = "You have not selected one or more Members to move to a Location. " +
    "Return to the Accountability page and make sure you have at least one Member and one " +
    "target Location selected.";
} else if ("missingLocationSelection".equalsIgnoreCase(errorMessage)){
    errorPrint = "You have not selected a Location to move the selected Member(s) to. " +
    "Return to the Accountability page and make sure you have at least one Member and one " +
    "target Location selected.";
} else if ("noMemberSMS".equalsIgnoreCase(errorMessage)){
    errorPrint = "This Member does not have an SMS or Email address so they cannot receive a " +
    "new security cookie at this time.  Enter an SMS or Email address for this Member " +
    "and then re-attempt to send them their security cookie.";
}
  
%>

<title>FirstResponder</title>

<!--META-->
<meta http-equiv="content-type"  content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width" />

<!--STYLESHEET-->
<link rel="stylesheet" type="text/css" href="stylesheets/static.css" />
</head>

<body>
<!--FIXED HEADERS-->
<div class="headwrap">
<div class="hBlack">
<div class="headerLeftTop">FirstResponder</div>
<div class="headerRightTop">ver 0.9</div>
<div class="headerLeftBottom">System Message</div>
<div class="headerRightBottom">12:34 PM</div>
</div>
<div class="hGray">
  <a class="buttonGrayHdr" href="mainMenu.html">Main</a>
  <a class="buttonGrayHdr" href="commandMenu.html">Command</a>
  <a class="buttonGrayHdr" href="department?action=display">Admin</a>
</div>
<div class="headerMist"></div>
</div>

<div class="outwrap">
<div class="headerPlug"></div>

<!--BUTTONS-->

<div class="row" style="width: 95%; margin: 10px">
<%=errorPrint %> </div> 
<div class="row" style="width: 95%;  margin: 10px">
Contact your administrator if you think this message is inaccurate.</div>

<!--FOOTER-->
<div class="footer">FirstResponder</div>

<!--OUTLINE WRAPPER -->
</div> 

</body>
</html>
